﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication9
{
    class Program
    {
        static void Main(string[] args)
        {
           for (int i = 1; i < 10; i++)
            {
                for (int j = 1; j < 10; j++)
                {
                    int r = i * j;
                    if (r >= 10)                        
                    {
                        string str = String.Format("{0} x {1} = {2}", i, j, r);
                        Console.Write(str + "   ");
                    }
                   
                    else
                    {
                        string str = String.Format("{0} x {1} = {2}", i, j, " " + r);
                        Console.Write(str + "   ");
                    }
                }
                Console.WriteLine();
            }
            Console.ReadLine();
        }
    }
}
